package cug.example.learningweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@ComponentScan(basePackages = {"cug.example.learningservice"})
@ComponentScan(basePackages = {
        "cug.example.learningweb",        // Controller
        "cug.example.learningservice",    // Service
        "cug.example.learningdao"         // Repository / Entity
})
public class LearningWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(LearningWebApplication.class, args);
    }

}
